package com.farm.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;

@Data
@NoArgsConstructor
public class CommitEs extends Commited{
    private List<String> suggestion;
    public CommitEs(Commited commited){
        this.setCommitId(commited.getCommitId());
        this.setUserId(commited.getUserId());
        this.setContent(commited.getContent());
        this.setLiking(commited.getLiking());
        this.setPicList(commited.getPicList());
        this.setCollection(commited.getCollection());
        this.setLabel(commited.getLabel());
        this.setCreateTime(commited.getCreateTime());
        this.setUpdateTime(commited.getUpdateTime());
        this.suggestion = Arrays.asList( this.getLabel());
    }
}
